﻿@namespace SE.PO.CInterface.Web.Pages.DB.Area
@page "/db/area/edit"
@using SE.PO.CInterface.Web.Utils
@using SE.PO.CInterface.Web.Clients
@inject AreaClient AreaClient

<Form
    Model="@Model"
    Style="margin-top: 8px;"
    OnFinish="OnFinish"
    OnFinishFailed="OnFinishFailed"
    @ref="@Form">
    <FormItem Label="下级SCID" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="SC编码，下级SCID" @bind-Value="@context.ScId"/>
    </FormItem>
    <FormItem Label="区域编码" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="主键,区域编码，按照集团统一资源库模型编制" Disabled @bind-Value="@context.Id"/>
    </FormItem>
    <FormItem Label="上级区域ID" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="上级区域ID，如果不存在上级区域，则该LastAreaId为NULL，最大嵌套4级别" @bind-Value="@context.LastAreaId"/>
    </FormItem>
    <FormItem Label="区域名称" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="区域名称" @bind-Value="@context.AreaName"/>
    </FormItem>

</Form>